# -*- coding: utf-8 -*-
"""
______________________________
  Author: 安智军
  Email :  1010666711@qq.com
   Time : 2023/8/6 16:52
    File: TestBase.py
Software: PyCharm
______________________________
"""
from faker import Faker
from selenium import webdriver


class TestBase:
    def setup_class(self):
        self.driver = webdriver.Chrome()
        self.driver.implicitly_wait(10)
        # self.driver.maximize_window()
        fake = Faker('zh_CN')
        self.username = fake.name()
        self.phone = fake.phone_number()
        self.email = fake.email()

    def teardown_class(self):
        self.driver.quit()
